/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package session.stateless;

import javax.ejb.Local;

/**
 *
 * @author zhozho
 */
@Local
public interface PurchaseOrderBeanLocal {

    public entity.LineItem createLineItem(entity.Product product, java.lang.Integer quantity);

    public java.lang.Long convertToPurchaseOrder(java.lang.Long customerId, java.lang.Long saleQuotationId, java.util.List<entity.LineItem> lineItems);

    public void updatePurchaseOrderId(java.lang.Long purchaseOrderId);

    public java.util.List<entity.Product> getProduct();

    public java.util.List<entity.PurchaseOrder> getPurchaseOrders();

    public java.lang.Long createNewPurchaseOrder(java.lang.Long customerId, java.util.List<entity.LineItem> lineItems);

    public java.lang.Long createPOWithoutSQ(java.lang.Long customerId, java.util.List<entity.LineItem> lineItems);

    public java.lang.Long createPOWithSQ(java.lang.Long customerId, java.lang.Long saleQuotationId, java.util.List<entity.LineItem> lineItems);


}
